Class AsaObjectManagerImpl

java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.AsaObjectManagerImpl
All Implemented Interfaces:
IPCObject, AsaObjectManager

public class AsaObjectManagerImpl extends IPCObjectImpl implements AsaObjectManager
Information provided by the PKI file:

    \class CAsaObjectManager
    
    \brief CAsaObjectManager is the asa object storage manager class that is used to store and retrieve asa object.
    
    \example network().getDevice("Router0").getObjectManager()
    
Author:
Auto-generated
  • Constructor Details

  • Method Details

    • getObjectByName

      public AsaObject getObjectByName(String objName)
      Information provided by the PKI file:
      
          \brief Returns the asa object based on name
          
          \param objName, object name.
          
          \return CAsaObject, value is the asa object based on name.
          
              
      Specified by:
      getObjectByName in interface AsaObjectManager
      Parameters:
      objName - Takes in a parameter of objName
      Returns:
      AsaObject Returns a AsaObject
    • createObject

      public AsaObject createObject(ObjectType type, String objName)
      Information provided by the PKI file:
      
          \brief Creates an asa object.
          
          \param objName, object name
          \param type, asa object type, values:               eNetwork = 0,
          eService = 1,
          eGroupService = 2,
          eGroupServiceTcp = 3,
          eGroupServiceUdp = 4,
          eGroupServiceTcpUdp = 5,
          eGroupNetwork = 6,
          eWebvpn = 7
          
          \return CAsaObject, value is the asa object that is newly created.
          
              
      Specified by:
      createObject in interface AsaObjectManager
      Parameters:
      type - Takes in a parameter of type
      objName - Takes in a parameter of objName
      Returns:
      AsaObject Returns a AsaObject
    • removeObjectByName

      public void removeObjectByName(String objName)
      Information provided by the PKI file:
      
          \brief Remove the asa object based on name
          
          \param objName, object name to search with.
          
              
      Specified by:
      removeObjectByName in interface AsaObjectManager
      Parameters:
      objName - Takes in a parameter of objName
    • getNatObjectCount

      public int getNatObjectCount()
      Information provided by the PKI file:
      
          \brief Get Number of Nat Objects
          
          \return int, value is the number of nat objects that are stored.
          
              
      Specified by:
      getNatObjectCount in interface AsaObjectManager
      Returns:
      int Returns a int
    • getMostUse

      public int getMostUse()
      Information provided by the PKI file:
      
          \brief Get the number of static and dynamic nat entries have been used
          
          \return int, value is the number of static and dynamic nat entries have been used
          
              
      Specified by:
      getMostUse in interface AsaObjectManager
      Returns:
      int Returns a int
    • setMostUse

      public void setMostUse(int mostUse)
      Information provided by the PKI file:
      
          \brief Set the number of static and dynamic nat entries have been used
          
          \param mostUse, the number of static and dynamic nat entries have been used
          
              
      Specified by:
      setMostUse in interface AsaObjectManager
      Parameters:
      mostUse - Takes in a parameter of mostUse
    • getObjectCount

      public int getObjectCount()
      Information provided by the PKI file:
      
          \brief Get the number of asa objects
          
          \return int, value is the number of asa objects.
          
              
      Specified by:
      getObjectCount in interface AsaObjectManager
      Returns:
      int Returns a int
    • getObjectAt

      public AsaObject getObjectAt(int index)
      Information provided by the PKI file:
      
          \brief Get the Asa object at a specified index
          
          \param index, index of the asa object to get.  Range is (0, getObjectCount()).
          
          \return value is the Asa object at the specified index.
          
              
      Specified by:
      getObjectAt in interface AsaObjectManager
      Parameters:
      index - Takes in a parameter of index
      Returns:
      AsaObject Returns a AsaObject
    • nameifChanged

      public void nameifChanged(String newName, String oldName)
      Information provided by the PKI file:
      
          \brief This function updates the asa object that has reference to interface nameIf
          
          \param newName, the interface new nameIf
          \param oldName, the interface old nameIf
          
              
      Specified by:
      nameifChanged in interface AsaObjectManager
      Parameters:
      newName - Takes in a parameter of newName
      oldName - Takes in a parameter of oldName